//
//  WSSetUserSexController.m
//  CharonTVProject
//
//  Created by karong on 2023/8/4.
//

#import "WSSetUserSexController.h"
#import "UIView+WSDraw.h"

@interface WSSetUserSexController ()

@property (weak, nonatomic) IBOutlet UIView *mainView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *viewBottom;

@end

@implementation WSSetUserSexController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.mainView setupRoundedCornersWithCutCorners:UIRectCornerTopLeft|UIRectCornerTopRight withRadii:CGSizeMake(10, 10)];
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.25 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^(void){
        self.viewBottom.constant = 0;
        [self.view uploadLayout];
    });
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (IBAction)sexBtnAction:(UIButton *)sender {
    [self dismissViewControllerAnimated:YES completion:^{
        if (self.charonTV_selectSexHandle) {
            self.charonTV_selectSexHandle(sender.tag);
        }
    }];
}

- (IBAction)cencelAction:(id)sender {
    [self dismiss];
}

@end
